/// 角色信息
class SysRoleEntity {
  /// 主键ID
  final int? id;
  /// 系统代码：1-客户端 2-平台端 3-核销代理端 4-财务代理端
  final int? systemCode;
  /// 角色名称
  final String? roleName;
  /// 是否内置角色：0否 1是，默认0
  final int? buildin;
  /// 数据状态（1-有效，0-无效）
  final int? status;
  /// 创建时间
  final String? createTime;

  SysRoleEntity({
    this.id,
    this.systemCode,
    this.roleName,
    this.buildin,
    this.status,
    this.createTime,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (id != null) data['id'] = id;
    if (systemCode != null) data['systemCode'] = systemCode;
    if (roleName != null) data['roleName'] = roleName;
    if (buildin != null) data['buildin'] = buildin;
    if (status != null) data['status'] = status;
    if (createTime != null) data['createTime'] = createTime;
    return data;
  }

  factory SysRoleEntity.fromJson(Map<String, dynamic> json) {
    return SysRoleEntity(
      id: json['id'],
      systemCode: json['systemCode'],
      roleName: json['roleName'],
      buildin: json['buildin'],
      status: json['status'],
      createTime: json['createTime'],
    );
  }
}